package com.chenxin.wms.process.common.impl;

import com.chenxin.wms.domain.po.StationInfo;
import com.chenxin.wms.mapper.LocationMapper;
import com.chenxin.wms.mapper.StationMapper;
import com.chenxin.wms.process.common.ICommonFunction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class commonFunction implements ICommonFunction {
    @Autowired
    private StationMapper stationMapper;
    @Autowired
    private LocationMapper locationMapper;

    @Override
    public String getMasterNoById(String moduleCode, Long masterId) {
        return null;
    }

    @Override
    public StationInfo getStationInfoByNo(String stationNo) {
        if(stationNo == null) return null;
        //通过视图表直接获取
        return stationMapper.selectStationInfoByNo(stationNo);
    }
}
